package cn.cqie.attendance.manager.service;

import cn.cqie.attendance.common.util.Page;
import cn.cqie.attendance.common.util.PageBean;
import cn.cqie.attendance.manager.pojo.AdminAttachment;
import cn.cqie.attendance.manager.pojo.AdminLeavesDistance;
import cn.cqie.attendance.manager.pojo.AdminLeavesSearch;
import cn.cqie.attendance.manager.pojo.AdminStudentLeave;
import org.springframework.stereotype.Service;

/**
 * @author king james
 * @create 2021-07-07-{TIME}
 */
@Service
public interface AdminLeavesService {
    /**
     * 组合模糊查询学生请假信息
     * @param adminLeavesSearch 搜索条件信息
     * @param pageSize 每一页的数量
     * @param  pageNum
     * @return
     */
    PageBean<AdminStudentLeave> queryAllLeavesInfo(AdminLeavesSearch adminLeavesSearch, Integer pageSize, Integer pageNum);


    /**
     * 根据学生请假id查询学生请假详情
     * @param leaveId 学生请假id
     * @return
     */
    Page<AdminStudentLeave> queryLeavesInfoById(Integer leaveId);


    /**
     * 根据学生id查询学生请假附件
     * @param leaveId 学生请假id
     * @return
     */
    Page<AdminAttachment> queryAttachmentInfoById(Integer leaveId);

    /**
     * 根据学生id查询学生请假流程管理
     * @param leaveId 学生请假id
     * @return
     */
    Page<AdminLeavesDistance> queryLeaveDistanceById(Integer leaveId);





}
